package com.sinodata.bsm.common.vo;

import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * DimensionType entity. @author MyEclipse Persistence Tools
 */
//@Entity
//@Table(name = "DIMENSION_TYPE")
public class DimensionType implements java.io.Serializable {

    // Fields    

    private Long id;
    private String dimensionTypeName;
    private Long isRelation;

    // Constructors

    /** default constructor */
    public DimensionType() {
    }

    /** minimal constructor */
    public DimensionType(Long id) {
        this.id = id;
    }

    /** full constructor */
    public DimensionType(Long id, String dimensionTypeName, Long isRelation, Set<Dimension> dimensions) {
        this.id = id;
        this.dimensionTypeName = dimensionTypeName;
        this.isRelation = isRelation;
    }

    // Property accessors
    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "sequence")
    @SequenceGenerator(name = "sequence", sequenceName = "DIMENSIONTYPE_SEQ")
    @Column(name = "ID", unique = true, nullable = false, insertable = true, updatable = true, precision = 22, scale = 0)
    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Column(name = "IS_RELATION", unique = false, nullable = true, insertable = true, updatable = true, precision = 1, scale = 0)
    public Long getIsRelation() {
        return this.isRelation;
    }

    public void setIsRelation(Long isRelation) {
        this.isRelation = isRelation;
    }

    @Column(name = "T_NAME", unique = false, nullable = true, insertable = true, updatable = true, length = 100)
    public String getDimensionTypeName() {
        return dimensionTypeName;
    }

    public void setDimensionTypeName(String dimensionTypeName) {
        this.dimensionTypeName = dimensionTypeName;
    }

}